package com.qfedu.edu.enum1;

public enum ResponseCode {
    SUCCESS(0,"请求成功"),
    ERROR(-1,"请求失败"),
    NOT_VISITOR(403, "没有权限访问这个方法"),
    AUTH_EXCEPTION(401, "身份认证失败"),
    LOGIN_EXCEPTION(100, "登陆失败");
    private Integer code;
    private String message;
    ResponseCode(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
